import request from '@/utils/request'

// 这里就放与文章相关的请求
export const getArtAPI = () => request.get('/my/cate/list')

// 添加分类列表的方法
export const addArtAPI = obj => request.post('/my/cate/add', obj)

// 删除文章分类
export const delArtAPI = id => request.delete('/my/cate/del', { params: { id: id } })

// 编辑文章分类
export const editArtAPI = obj => request.put('/my/cate/info', obj)
